
import Home from "../views/home/home"
import Login from "../views/login/login"
import User from "../views/user/user"
import Title from "../views/title/title";
import { Navigate } from "react-router-dom";
import Search from "../views/search/search";
import Gds from "../views/gds/gds"
// import { Search } from "react-router-dom";

export default [
    {
        path: "/",
        // 路由重定向, 借助Navigate组件跳转
        element: <Navigate to="/home" replace/>
    },
    {
        path: '/home',
        element: <Home />
    },
    {
        path: '/user',
        element: <User />
    },
    {
        path: '/login',
        element: <Login />
    },
    {
        path: '/title',
        element: <Title />
    },
    {
        path:'/search/:id',
        element:<Search />
    },
    {
        path:'/gds',
        element:<Gds />
    }
]
